const importers = import.meta.glob<string>('/public/lang-code/*/index.ts')
const languages: { [key in string]: () => any } = {}
Object.keys(importers).forEach((fileName) => {

  const language = fileName.replace('/public/lang-code/', '').replace('/index.ts', '')
  languages[language] = importers[fileName]
})
//eg:{{语言名称1：import函数},{语言名称2:import函数},...}
export default languages
